import request from '@/utils/request'

export function sendListQuery(args) {
    return request({
        url: 'admin/treatment/advice/list',
        method: 'get',
        params: args
    })
}

export function sendDepartmentQuery() {
    return request({
        url: 'admin/common/department/list',
        method: 'get',
        params: {
            page: "1",
            size: "10",
        }
    })
}

export function sendDoctorQuery(code) {
    return request({
        url: 'admin/auth/getEnableAdminsWithRole',
        method: 'get',
        params: {
            // roleId: 2,
            departmentCode: code || null,
        }
    })
}

export function sendCancelQuery(data) {
    return request({
        url: 'admin/treatment/advice/cancel',
        method: 'post',
        data: {
            "adviceIdList": data
        }
    })
}

export function sendSignQuery(data) {
    return request({
        url: 'admin/treatment/advice/sign',
        method: 'post',
        data:data
    })
}


export default { sendListQuery, sendDepartmentQuery, sendDoctorQuery, sendCancelQuery, sendSignQuery }

